package teste;

import java.sql.ResultSet;
import java.sql.Statement;

import junit.framework.TestCase;

import org.junit.Test;

import banco.DB;
/**
 * 
 * @author klebson lou
 * classe para testar conexao com banco
 */
public class TesteBanco extends TestCase{
	boolean teste = false;

	@Test
	public void test() {
		try {
			 Statement stm= DB.getConnections().createStatement();
			    ResultSet rs = stm.executeQuery("SELECT * FROM usuario");
			    if(rs!=null){			    				    					    	
			    	teste=true;			    	
			    }			   
			    assertEquals(teste, true);
			    
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
